//banner轮播图
import {getBannerList} from '@/apis/category/index'
import {ref,onMounted} from 'vue'
export const useBanner =()=>{
    let bannerList = ref([])
    onMounted(()=>{
        getbannerList()
    })
    //获取banner列表
const getbannerList = async ()=>{
    let result = await getBannerList(2)
    console.log(111);
    bannerList.value = result.result
  }
  return {
    bannerList,
  }
}